package com.api.shopapi.service;

import com.api.shopapi.entity.RoomType;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface RoomTypeService {


    int insert(RoomType roomType);

    int updateByRoomTypeCode(RoomType roomType);

    RoomType getByNameAndInstitutionCode(String name,String institutionCode);

    RoomType getByRoomTypeCode(String roomTypeCode);

    List<RoomType> getListAllByInstitutionCode(String institutionCode);

    PageInfo<RoomType> getPageList(int pageIndex, int pageSize, String institutionCode, String name, int status);


    PageInfo<RoomType> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


}
